// 地址的相关接口
import http from '../../../utils/http'

//地址列表
export const reqAddressList = ()=>{
  return http.get('/findUserAddress')
}
//新增地址
export const reqAddAddress = (params)=>{
  return http.post(`/findUserAddress`,params)
}
//修改地址
export const reqEditAddress = (id,params)=>{
  return http.put(`/findUserAddress/${id}`,params)
}
//删除地址
export const reqDelAddress = (id)=>{
  return http.delete(`/findUserAddress/${id}`)
}
//获取收获地址详情
export const reqAddressDetails = (id)=>{
  return http.get(`/findUserAddress/${id}`)
}